package com.wbl.train.common.page;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * Author: 王博纶
 * Date: 2024/1/29 16:59
 * FileName: PageVo
 * Description: 分页对象的Vo类
 */
@Data
@Accessors(chain = true) // 开启链式语法
public class PageVo<T> implements Serializable {
    @Schema(description = "数据列表")
    private List<T> dataList;

    @Schema(description = "当前页码")
    private Integer currentPage;

    @Schema(description = "每页条数")
    private Integer pageSize;

    @Schema(description = "总页数")
    private Integer pages;

    @Schema(description = "总条数")
    private Integer total;
}
